﻿using System;

// A simple interface 
interface I_interface
{

    // This method is only 
    // have its declaration 
    // not its definition 
    void display_1();

    // Default method with both  
    // declaration and definition 
    public void display_2()
    {
        Console.WriteLine("Hello!! Default Method");
    }

    class Example_Class : I_interface
    {

        // Providing the body 
        // part of the method 
        public void display_1()
        {
            Console.WriteLine("Hello!! Method");
        }

        // Main Method 
        public static void Main(String[] args)
        {

            // Creating an object 
            Example_Class t = new Example_Class();

            // Calling method 

            // Creating an object 
            I_interface obj = new Example_Class();

            t.display_1();
            // Calling default method 
            obj.display_2();
        }
    }
}
